<% if @cultural_heritage_cultural_institutions.size > 0 %>
  <table class="paginated_table sorted_table">
    <thead>
    <tr>
      <th>N°</th>
      <th>Nombre</th>
      <%#*<th>Descripcion</th>%>
      <th>Dirección</th>
      <th>Correo</th>
      <th>Teléfono</th>
      <th>Web</th>
      <th>Departamento</th>
      <%#*<th>Provincia</th>%>
      <th>Acciones</th>
    </tr>
</thead>
<tbody>
  <% @cultural_heritage_cultural_institutions.each do |cultural_heritage_cultural_institution| %>
    <tr>
      <td><%= cultural_heritage_cultural_institution.id %></td>
      <td><%= cultural_heritage_cultural_institution.name %></td>
      <%#*<td><%= cultural_heritage_cultural_institution.description%>
      <td><%= cultural_heritage_cultural_institution.address %></td>
      <td><%= cultural_heritage_cultural_institution.email %></td>
      <td><%= cultural_heritage_cultural_institution.phone %></td>
      <td><%= cultural_heritage_cultural_institution.web %></td>
      <td><% if ! cultural_heritage_cultural_institution.department.blank?%>
            <%=cultural_heritage_cultural_institution.obj_department.name %>
          <%end%>
      </td>
    <td><%= link_to image_tag("navi/search-16-ns.png", :border => 0), cultural_heritage_cultural_institution %>
      <% if (user_signed_in? && ([2,4].include?(current_user.role))) %>
        <%= link_to image_tag("navi/pencil-16-ns.png", :border => 0), edit_cultural_heritage_cultural_institution_path(cultural_heritage_cultural_institution) %>
        <%= link_to image_tag("navi/cross-16-ns.png", :border => 0), cultural_heritage_cultural_institution, :confirm => 'Esta Seguro?', :method => :delete %>
      <%end%>
    </td>


    </tr>
  <% end %>
    </tbody>
  </table>
<% else %>
 <p>Ninguna Institucion Cultural Encontrada</p>
<% end %>